package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_QUARTZ_WORK"
 *     
*/
public class CcpQuartzWork implements Serializable {

    /** identifier field */
    private String cqwGuid;

    /** nullable persistent field */
    private String workName;

    /** nullable persistent field */
    private String workRemark;

    /** nullable persistent field */
    private String workState;

    /** nullable persistent field */
    private String startTime;

    /** nullable persistent field */
    private String endTime;

    /** nullable persistent field */
    private String scheduleType;

    /** nullable persistent field */
    private Integer scheduleFrequency;

    /** nullable persistent field */
    private String schedulePeriod;

    /** nullable persistent field */
    private String groupGuid;

    /** full constructor */
    public CcpQuartzWork(String cqwGuid, String workName, String workRemark, String workState, String startTime, String endTime, String scheduleType, Integer scheduleFrequency, String schedulePeriod, String groupGuid) {
        this.cqwGuid = cqwGuid;
        this.workName = workName;
        this.workRemark = workRemark;
        this.workState = workState;
        this.startTime = startTime;
        this.endTime = endTime;
        this.scheduleType = scheduleType;
        this.scheduleFrequency = scheduleFrequency;
        this.schedulePeriod = schedulePeriod;
        this.groupGuid = groupGuid;
    }

    /** default constructor */
    public CcpQuartzWork() {
    }

    /** minimal constructor */
    public CcpQuartzWork(String cqwGuid) {
        this.cqwGuid = cqwGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CQW_GUID"
     *         
     */
    public String getCqwGuid() {
        return this.cqwGuid;
    }

    public void setCqwGuid(String cqwGuid) {
        this.cqwGuid = cqwGuid;
    }

    /** 
     *            @hibernate.property
     *             column="WORK_NAME"
     *             length="50"
     *         
     */
    public String getWorkName() {
        return this.workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    /** 
     *            @hibernate.property
     *             column="WORK_REMARK"
     *             length="200"
     *         
     */
    public String getWorkRemark() {
        return this.workRemark;
    }

    public void setWorkRemark(String workRemark) {
        this.workRemark = workRemark;
    }

    /** 
     *            @hibernate.property
     *             column="WORK_STATE"
     *             length="1"
     *         
     */
    public String getWorkState() {
        return this.workState;
    }

    public void setWorkState(String workState) {
        this.workState = workState;
    }

    /** 
     *            @hibernate.property
     *             column="START_TIME"
     *             length="14"
     *         
     */
    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /** 
     *            @hibernate.property
     *             column="END_TIME"
     *             length="14"
     *         
     */
    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEDULE_TYPE"
     *             length="1"
     *         
     */
    public String getScheduleType() {
        return this.scheduleType;
    }

    public void setScheduleType(String scheduleType) {
        this.scheduleType = scheduleType;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEDULE_FREQUENCY"
     *             length="4"
     *         
     */
    public Integer getScheduleFrequency() {
        return this.scheduleFrequency;
    }

    public void setScheduleFrequency(Integer scheduleFrequency) {
        this.scheduleFrequency = scheduleFrequency;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEDULE_PERIOD"
     *             length="62"
     *         
     */
    public String getSchedulePeriod() {
        return this.schedulePeriod;
    }

    public void setSchedulePeriod(String schedulePeriod) {
        this.schedulePeriod = schedulePeriod;
    }

    /** 
     *            @hibernate.property
     *             column="GROUP_GUID"
     *             length="32"
     *         
     */
    public String getGroupGuid() {
        return this.groupGuid;
    }

    public void setGroupGuid(String groupGuid) {
        this.groupGuid = groupGuid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cqwGuid", getCqwGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpQuartzWork) ) return false;
        CcpQuartzWork castOther = (CcpQuartzWork) other;
        return new EqualsBuilder()
            .append(this.getCqwGuid(), castOther.getCqwGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCqwGuid())
            .toHashCode();
    }

}
